﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Admin_SetWebList.aspx.cs" Inherits="Admin_SetWebList" %>

<%@ Register Src="../Controls/AdminCheck.ascx" TagName="AdminCheck" TagPrefix="uc1" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>后台管理系统</title>
    <link href="Images/css1/css.css" rel="stylesheet" type="text/css">
</head>
<SCRIPT language=javascript>
<!--
var displayBar=true;
function switchBar(obj){
	if (displayBar)
	{
		parent.frame.cols="0,*";
		displayBar=false;
		obj.value="打开左边管理菜单";
	}
	else{
		parent.frame.cols="195,*";
		displayBar=true;
		obj.value="关闭左边管理菜单";
	}
}


//-->
</SCRIPT>
<body>
<form runat="server"> 
<table class="table" cellspacing="1" cellpadding="2" width="auto" align="center" border="0">
  <tbody>
    <tr>
      <th class="bg_tr" align="left" colspan="4" height="25"> <span style="font-size:18px;">网站参数</span>   
      <input onClick="switchBar(this)" type="button" value="关闭左边管理菜单" name="SubmitBtn" /></th>
    </tr>
    <tr>
      <td class="td_bg" colspan="4">    
      <asp:GridView ID="NewsList" runat="server"  AutoGenerateColumns="False" 
              OnRowDataBound="NewsList_RowDataBound" HorizontalAlign="Center" 
              OnRowDeleting="NewsList_RowDeleting" OnRowEditing="NewsList_RowEditing" 
              OnRowUpdating="NewsList_RowUpdating" 
              OnRowCancelingEdit="NewsList_RowCancelingEdit" Width="777px">
                        <Columns>
  
                            <asp:BoundField DataField="Wkey" HeaderText="Wkey" 
                                HeaderStyle-Width="170" ItemStyle-Width="170" > 
<HeaderStyle Width="170px"></HeaderStyle>

<ItemStyle Width="170px"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="Wvalue" HeaderText="Wvalue" 
                                ItemStyle-HorizontalAlign="Center"  HeaderStyle-Width="300" 
                                ItemStyle-Width="300" >
<HeaderStyle Width="300px"></HeaderStyle>

<ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="添加时间"  HeaderStyle-Width="80" ItemStyle-HorizontalAlign="Center" >
                                <ItemTemplate>
                                    <asp:Literal ID="Literal1" runat="server" Text='<%# Eval("Wtime","{0:yyyy-M-dd}") %>'></asp:Literal>
                                </ItemTemplate>

<HeaderStyle Width="80px"></HeaderStyle>

<ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:TemplateField>
                            <asp:CommandField HeaderText="编辑" ShowEditButton="True"  
                                HeaderStyle-Width="40"  ItemStyle-HorizontalAlign="Center" >
<HeaderStyle Width="40px"></HeaderStyle>

<ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:CommandField>
                            <asp:CommandField HeaderText="删除" ShowDeleteButton="True" 
                                HeaderStyle-Width="40" ItemStyle-HorizontalAlign="Center" >
<HeaderStyle Width="40px"></HeaderStyle>

<ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:CommandField>
                        </Columns>
                        <HeaderStyle BackColor="#E4F1FA" Font-Bold="True" ForeColor="#006699" />
                       </asp:GridView></td>
    </tr>
        <tr> 
      <td class="bg_tr" align="left" colspan="4" height="26">
      <div style="float:left;"> </div>
      <webdiyer:AspNetPager ID="AspNetPager1" runat="server" pagesize="15"  CssClass="paginator"
         onpagechanged="AspNetPager1_PageChanged" 
         CurrentPageButtonPosition="Center" 
         CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页显示%PageSize%条信息" 
         FirstPageText="首页" LastPageText="尾页" LayoutType="div" NextPageText="下一页" 
         PageIndexBoxType="textbox" PagingButtonLayoutType="Span" 
         PrevPageText="上一页" ShowCustomInfoSection="Left" SubmitButtonText="Go" 
         ShowPageIndexBox="Always"  TextBeforePageIndexBox="转到第" TextAfterPageIndexBox="页" >
     </webdiyer:AspNetPager>

    </td>
    </tr>
  </tbody>
</table>
    <uc1:AdminCheck ID="AdminCheck1" runat="server" />

</form>

</body>



</html>
